This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 4, 2011, 6:58 PM
5 Posts

How to limit a number of entries in view control

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.1
  • Role:
  • Tags: viewcontrol limit
  • Replies: 2
My database contains a view with several thousand document in it.
I want, however, using view control, to limit display to just first 50 documents. 
I understand that I can hide pager and limit a page rows to 50 to achieve this, but I am concerned of performance impact  because of XPages loading complete view entries in background and the n just displaying 50.
Any help appreciated. 
 
Apr 5, 2011, 7:44 PM
64 Posts
Use a repeat control...
- I can't address view controls because I avoid them like anthrax, but a repeat control has an attribute specifically for this purpose ... and it defaults to 30 without bothered to notify you.  Won't impact you setting it to 50, but it does impact anything that uses a repeat control without actually setting a limit.
 
Hope this helps...
Apr 6, 2011, 11:16 AM
5 Posts
Re: How to limit a number of entries in view control
My question was more how to do it using the view control itself without using other controls to mimic a view control.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal